<script setup lang="ts">
import updater from '@renderer/components/updater.vue'
import HistoryMenu from '@renderer/layouts/admin/historyMenu.vue'
import leftMenu from '@renderer/layouts/admin/leftMenu.vue'
import Navbar from '@renderer/layouts/admin/navbar.vue'

setTimeout(async () => {
  window.api.checkUpdate()
}, 3000)
</script>

<template>
  <main class="h-screen nodrag w-screen flex rounded-lg overflow-hidden relative" style="border: 1px solid #888888">
    <leftMenu />
    <section class="content bg-[#f0f2f9] overflow-hidden flex-1 flex flex-col">
      <div>
        <Navbar />
        <HistoryMenu />
      </div>
      <div class="overflow-y-auto flex-1">
        <router-view #default="{ Component, route }">
          <component :is="Component" class="m-2 p-5" :key="route.fullPath" />
        </router-view>
      </div>
    </section>
    <updater />
  </main>
</template>
